package blueBridge;

public class Main1 {
    public static void main(String[] args) {
        int res = 0;
        for(int i = 200;i<=2000000;i++){
            for(int j = 1;j<=12;j++){
                for(int k = 1;k<32;k++){
                    if(i%4 == 0&&i%100!=0&&j == 2&&k>28){
                        continue;
                    }
                    if(j == 4||j==6||j == 9||j == 11){
                        if(k>30){
                            continue;
                        }
                    }

                    if(i%j == 0&&i%k == 0){
                        res++;
                    }
                }
            }
        }
        System.out.println(res);
        //35903339
    }
}
